import request from '@/utils/request'

// 查询学生分班列表
export function listStudentClass(query) {
  return request({
    url: '/studentClass/studentClass/list',
    method: 'get',
    params: query
  })
}

// 查询学生分班详细
export function getStudentClass(studentId) {
  return request({
    url: '/studentClass/studentClass/' + studentId,
    method: 'get'
  })
}

// 新增学生分班
export function addStudentClass(data) {
  return request({
    url: '/studentClass/studentClass',
    method: 'post',
    data: data
  })
}

// 修改学生分班
export function updateStudentClass(data) {
  return request({
    url: '/studentClass/studentClass',
    method: 'put',
    data: data
  })
}

// 删除学生分班
export function delStudentClass(studentId) {
  return request({
    url: '/studentClass/studentClass/' + studentId,
    method: 'delete'
  })
}
